package com.example.leetcode.matrix;

import com.example.leetcode.matrix.common.MatrixUtils;

class Solution6367 {
    public int matrixSum(int[][] nums) {
        return MatrixUtils.matrixSum(nums);
    }
}

public class leetcode6367 {
    public static void main(String[] args) {
        Solution6367 solution6367 = new Solution6367();
        int[][] nums = {
                {7, 2, 1},
                {6, 4, 2},
                {6, 5, 3},
                {3, 2, 1}
        };
        int[][] nums1 = {{1}};
        System.out.println(solution6367.matrixSum(nums));
        System.out.println(solution6367.matrixSum(nums1));
    }
}
